import Vue from "vue";
import "element-ui/lib/theme-chalk/index.css";

import {
  Form,
  Popconfirm,
  FormItem,
  Input,
  Button,
  Message,
  MessageBox,
  Container,
  Header,
  Aside,
  Main,
  Menu,
  Submenu,
  MenuItem,
  Radio,
  Col,
  Row,
  Card,
  RadioGroup,
  Tag,
  Tree,
  Dropdown,
  DropdownMenu,
  DropdownItem,
  Drawer,
  Dialog,
  TableColumn,
  Table,
  InputNumber,
  Scrollbar,
  Footer,
  Upload,
  Option,
  Select
} from "element-ui";
Vue.use(Button);
Vue.use(Select);
Vue.use(Option);
Vue.use(Upload);
Vue.use(Radio);
Vue.use(Popconfirm);
Vue.use(RadioGroup);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Input);
Vue.use(Container);
Vue.use(InputNumber);
Vue.use(Scrollbar);
// 容器组件
Vue.use(Header);
Vue.use(Footer);
Vue.use(Aside);
Vue.use(Main);
Vue.use(Card);
Vue.use(Tag);
Vue.use(Dialog);
Vue.use(TableColumn);
Vue.use(Table);
Vue.use(Drawer);

// 侧边栏组件
Vue.use(Menu);
Vue.use(Submenu);
Vue.use(MenuItem);

// 栅格布局
Vue.use(Col);
Vue.use(Row);

// 树状结构
Vue.use(Tree);

// 下拉列表
Vue.use(DropdownItem);
Vue.use(DropdownMenu);
Vue.use(Dropdown);

Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
